package com.caosy.grassthinkremote.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.caosy.grassthinkremote.entity.User;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;

@Repository
public interface UserMapper extends BaseMapper<User> {
    List<User> getUserByNameAndPw(String username, String password);

    void updateLoginTime(Long userId, Date loginTime);
}
